package app11;

public class PolymorphismDemo1{
    public static void main(String[] args) {
        Employee employee;
        employee=new Manager();
        System.out.println(employee.getClass().getName());
        employee.work();
        Manager manager=(Manager) employee;
        manager.manage();
    }
}
